package com.jinfang.bankpractice.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.jinfang.bankpractice.model.Dictionary;
import com.jinfang.bankpractice.service.DictionaryService;
import com.wordnik.swagger.annotations.ApiOperation;

@RestController
public class DictionaryController {

	@Autowired
	private DictionaryService dicService;
	
	@ApiOperation(value="所有的课程",notes="requires noting")
	@RequestMapping(value="/api/courses",method=RequestMethod.GET)
	public List<Dictionary> allCourse(){		
		return dicService.allCourse();
	}
	
	@ApiOperation(value="所有的题目类型",notes="requires noting")
	@RequestMapping(value="/api/questype",method=RequestMethod.GET)
	public List<Dictionary> allQuesType(){
		return dicService.allQuesType();
	}
	
}
